﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Police/Police.master" AutoEventWireup="true"
    CodeFile="IntroFileList.aspx.cs" Inherits="Police_TranslateDocument_IntroFileList"
    StylesheetTheme="Content" %>

<%@ Register Src="../../UserContral/ListPageContral.ascx" TagName="ListPageContral"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script type="text/javascript">
        //<![CDATA][
        function CheckAll(oCheckbox) {
            var items = document.getElementsByTagName("INPUT");
            for (i = 0; i < items.length; i++) {
                if (items[i].type == "checkbox") {
                    items[i].checked = oCheckbox.checked;
                }
            }
        }
        function OpenWin(url) {
            var h = 480;
            var w = 640;
            var t = (screen.height - h) / 2;
            var l = (screen.width - w) / 2;
            window.open(url, null, 'left=' + l + ",top=" + t + ",width=" + w + ",height=" + h + ",toolbar=yes,scrollbars=yes,status=yes");
        }
        //]]>
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <ul class="topmenu">
        <li><a href="AppalyNew.aspx">起草请示</a> </li>
    </ul>
    <asp:GridView ID="UserGrid" runat="server" AutoGenerateColumns="False" Caption="<span>请示列表</span>"
        DataKeyNames="AID" OnRowDataBound="UserGrid_RowDataBound" OnRowCommand="UserGrid_RowCommand">
        <Columns>
            <asp:TemplateField>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle Width="5px" />
                <ItemTemplate>
                    <asp:Label ID="ID" runat="server"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="标题">
                <ItemTemplate>
                    <%--<a href="javascript:OpenWin('AppalyDisplay.aspx?ID=<%# Eval("AID") %>')"><%# Eval("Title") %></a>--%>
                    <asp:HyperLink runat="server" ID="ApplyTitle"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="填写时间">
                <ItemTemplate>
                    <%# Eval("ATime")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="操作及状态">
                <ItemTemplate>
                    <a href="AppalyNew.aspx?id=<%# Eval("AID") %>">编辑</a>
                    <asp:LinkButton runat="server" ID="link" CommandArgument='<%#Eval("AID") %>' CommandName="del"
                        OnClientClick="return confirm('是否真的删除?')">删除</asp:LinkButton></div>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <HeaderStyle HorizontalAlign="Left" />
    </asp:GridView>
    <uc1:ListPageContral ID="ListPageContral1" OnPageSizeChange="ListPageContral1_PageSizeChange"
        PageSize="20" runat="server" />
    <div class="prompt">
        <br />
        <asp:Label ID="Prompt" runat="server"></asp:Label>
    </div>
</asp:Content>
